package com.zy.log.collection.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zy.common.annotation.Excel;
import com.zy.common.core.domain.BaseEntity;

/**
 * 日志采集对象 log_collection
 *
 * @author javachen
 * @date 2023-01-04
 */
public class LogCollection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 应用名称 */
    @Excel(name = "应用名称")
    private String applyName;

    /** 概览 */
    @Excel(name = "概览")
    private String resume;

    /** 详情 */
    @Excel(name = "详情")
    private String detail;

    /** 日志级别 */
    @Excel(name = "日志级别")
    private String level;

    /** 服务器ip */
    @Excel(name = "服务器ip")
    private String localServerIp;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date collectionTime;

    //----------------数据库实体end-------------------------

    /** 采集时间 */
    private String collectionTimeStart;

    private String collectionTimeEnd;

    private String tableName;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setApplyName(String applyName)
    {
        this.applyName = applyName;
    }

    public String getApplyName()
    {
        return applyName;
    }
    public void setResume(String resume)
    {
        this.resume = resume;
    }

    public String getResume()
    {
        return resume;
    }
    public void setDetail(String detail)
    {
        this.detail = detail;
    }

    public String getDetail()
    {
        return detail;
    }
    public void setLevel(String level)
    {
        this.level = level;
    }

    public String getLevel()
    {
        return level;
    }
    public void setLocalServerIp(String localServerIp)
    {
        this.localServerIp = localServerIp;
    }

    public String getLocalServerIp()
    {
        return localServerIp;
    }
    public void setCollectionTime(Date collectionTime)
    {
        this.collectionTime = collectionTime;
    }

    public Date getCollectionTime()
    {
        return collectionTime;
    }

    public String getCollectionTimeStart() {
        return collectionTimeStart;
    }

    public void setCollectionTimeStart(String collectionTimeStart) {
        this.collectionTimeStart = collectionTimeStart;
    }

    public String getCollectionTimeEnd() {
        return collectionTimeEnd;
    }

    public void setCollectionTimeEnd(String collectionTimeEnd) {
        this.collectionTimeEnd = collectionTimeEnd;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("applyName", getApplyName())
                .append("resume", getResume())
                .append("detail", getDetail())
                .append("level", getLevel())
                .append("localServerIp", getLocalServerIp())
                .append("collectionTime", getCollectionTime())
                .toString();
    }
}
